<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="include/base.jsp" %>

<!DOCTYPE html>
<!-- saved from url=(0038)http://192.168.0.77/pms/edit_goal.html -->
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="${basePath }/css/bootstrap.min.css">
	<script type="text/javascript" src="${basePath }/js/jquery-1.8.2.min.js"></script>
	<script type="text/javascript" src="${basePath }/js/bootstrap.min.js"></script>
</head>
<body class="body">
	
	<jsp:include page="include/top.jsp"/>

	
	<div class="container">
	  <div class="row">
		<div class="span9">
		<form class="form-horizontal" action="${basePath }/goal/editGoal" method="post">
	        <fieldset>
	          <legend>编辑目标</legend>
	          <div class="control-group">
	            <label class="control-label" for="input01">目标名称</label>
	            <div class="controls">
	              <input type="hidden" name="id" value="${goal.id }"/>
	              <input type="text" class="span5" id="input01" x-webkit-speech="undefined" name="goal.g_name" value="${goal.g_name }">
	              <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p>
	            </div>
	          </div>
	          <div class="control-group">
	            <label class="control-label" for="input01">目标描述</label>
	            <div class="controls">
	              <textarea class="span5" rows="8" name="goal.g_describle">${goal.g_describle }</textarea>
	            </div>
	          </div>
	          
	          <div class="form-actions">
	            <button type="submit" class="btn btn-primary">保存</button>
	            <c:choose>
		            <c:when test="${param.code != 1002 }">
		            	<a href="${basePath }/goal/toGoal"><input type="button" class="btn" value="返回"/></a>
		            </c:when>
		            <c:when test="${param.code == 1002 }">
		            	<a href="${basePath }/task/toTask?id=${goal.id}"><input type="button" class="btn" value="返回"/></a>
		            </c:when>
	            </c:choose>
	          </div>
	        </fieldset>
      	</form>          
          	
		</div>
		<div class="span3">
			
		</div>
	  </div>
	</div>

</body></html>
